package com.lagou.edu.ssssession.dto;


import com.lagou.edu.ssssession.pojo.Resume;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;

@Data
public class ResumeDto implements Serializable {

    private Long id;
    private String name;
    private String address;
    private String phone;

    public Resume toEntity() {
        Resume resume = new Resume();
        BeanUtils.copyProperties(this,resume);
        return resume;

    }
}
